package lab02.Test25;

import java.util.Scanner;

/**
 * Created by Administrator on 2017/11/8.
 */
public class Test25 {
    public static void main(String[] args) {
        while (true) {
            System.out.println("请输入一个数：");
            Scanner sc = new Scanner(System.in);
            int a = sc.nextInt();
            System.out.println("请输入一个数：");
            int b = sc.nextInt();
            try {
                double c = a / b;
                System.out.println(a + "/" + b + "=" + c);
            } catch (ArithmeticException e) {
                System.out.println("错误：除数为0！！");
            }
        }
    }
}
